package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Product;
import org.apache.ibatis.annotations.Param;

import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.domain.SafetyMechanism;
import cn.wolfcode.crm.query.ProductQueryObj;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Product entity);

    Product selectByPrimaryKey(Long id);

    List<Product> selectAllByCondition(@Param("smId") Long smId, @Param("sStatus") Long sStatus);
    List<Product> selectAll();

    int updateByPrimaryKey(Product entity);

    int queryForCount(ProductQueryObj qo);

    List queryForList(ProductQueryObj qo);

    List listAll();

    List<Product> selectProductBySn(String sn);
    List<Product> selectByPolicyId(Long policyId);
}